﻿@model CategoryModel
@{
    ViewBag.Title = "编辑活动类别";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@section Direct{
    <div class="adr">
        <ul>
            <li>@Html.ActionLink("返回", "Index", "Category")
            </li>
            <li>@Html.ActionLink("查看活动", "Index", "Event")
            </li>
        </ul>
    </div>
}

<section class="ec-add">
    <div class="form">
        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken();
            @Html.ValidationSummary(true)
            @Html.HiddenFor(r => r.Id)
            <div class="field">
                <div class="editor-label">
                    @Html.LabelFor(model => model.Name)
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(model => model.Name)
                    @Html.ValidationMessageFor(model => model.Name)
                </div>
            </div>
            <div class="field-large">
                <div class="editor-label">
                    @Html.LabelFor(model => model.Description)
                </div>
                <div class="editor-field">
                    @Html.TextAreaFor(model => model.Description)
                    @Html.ValidationMessageFor(model => model.Description)
                </div>
            </div>
            <div class="field">
                <div class="editor-label">
                </div>
                <div class="editor-field">
                    <input type="submit" value="提交" />
                </div>
            </div>
        }
    </div>
</section>
